Skip to content

Add unit test + editor ui capture harness across multiple versions - #146

Merged
paq merged 15 commits into
annulusgames:mainfrom
paq:test-across-versions
Aug 1, 2026
Merged

Add unit test + editor ui capture harness across multiple versions#146
paq merged 15 commits into
annulusgames:mainfrom
paq:test-across-versions

Conversation

@paq

@paq paq commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator
  • Add a TUnit-based runner for executing Alchemy tests across Unity 2022.3 and Unity 6000.0/6000.3/6000.5/6000.7.
  • Add manual visual-regression captures for inspector UI samples across Unity 6 versions. Unity 2022.3 does not support inspector captures since Unity CLI does not support the version.
  • Move the existing Unity tests into dedicated local test packages under tests/Alchemy.Tests.
  • Add an HTML capture matrix with screenshots, warnings, errors, and attached Unity logs.

Details

The new runner supports:

  • EditMode and PlayMode tests for every registered Unity version;
  • Inspector captures: per-capture warning and error collection;
  • an interactive HTML report for manual cross-version comparison.

Run the complete suite with:

dotnet run --project tests/UnityTestRunner --configuration Release

Fixed Issues

  • Fix Unity 6 compatibility issues discovered by the new test matrix:
    • correct for Unity 6+: bind/unbind/clear on inspectorContainer instead of rebinding the whole field (avoids UI Toolkit binding conflicts);
    • Q<Label>()?.RemoveFromHierarchy() correctly avoids "element is not a child" when the Label is nested under HelpBox.

@paq
paq marked this pull request as draft August 1, 2026 12:31
@paq
paq marked this pull request as ready for review August 1, 2026 12:57
@paq
paq merged commit 735a828 into annulusgames:main Aug 1, 2026
1 check passed
@paq
paq deleted the test-across-versions branch August 1, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant